package com.bdqn.vueboot.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 *
 * @TableName static
 */
@TableName(value ="static")
@Data
public class Static implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    private Integer staticId;

    /**
     * 状态名称
     */
    private String staticName;

    private String staticType;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Static other = (Static) that;
        return (this.getStaticId() == null ? other.getStaticId() == null : this.getStaticId().equals(other.getStaticId()))
            && (this.getStaticName() == null ? other.getStaticName() == null : this.getStaticName().equals(other.getStaticName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getStaticId() == null) ? 0 : getStaticId().hashCode());
        result = prime * result + ((getStaticName() == null) ? 0 : getStaticName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", staticId=").append(staticId);
        sb.append(", staticName=").append(staticName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
